<?php /* Smarty version Smarty-3.1.16, created on 2017-05-08 08:54:59
         compiled from "E:\blog\App\Back\View\Article\edit.html" */ ?>
<?php /*%%SmartyHeaderCode:32224590dbb8611ad04-83990893%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9cb19d79d53483a809ad32ac56f802898d7b54de' => 
    array (
      0 => 'E:\\blog\\App\\Back\\View\\Article\\edit.html',
      1 => 1494204748,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '32224590dbb8611ad04-83990893',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_590dbb861d0238_50561499',
  'variables' => 
  array (
    'art' => 0,
    'cateInfo' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_590dbb861d0238_50561499')) {function content_590dbb861d0238_50561499($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../Public/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="admin">
  <div class="tab">
    <div class="tab-head"> <strong>文章管理</strong>
      <ul class="tab-nav">
        <li class="active"><a href="#tab-set">修改文章</a></li>
      </ul>
    </div>
    <div class="tab-body"> <br />
      <div class="tab-panel active" id="tab-set">
        <form method="POST" class="form-x" action="index.php?p=Back&c=Article&a=dealEdit" enctype="multipart/form-data">
          <div class="form-group">
            <div class="label">
              <label for="sitename">文章标题</label>
            </div>
            <div class="field">
              <input type="text" class="input" id="title" name="title" size="50" placeholder="文章标题" data-validate="required:请填写您的文章标题" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['title'];?>
"/>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="logo">缩略图</label>
            </div>
            <div class="field"> <a class="button input-file" href="javascript:void(0);">上传文件
              <input size="100" type="file" name="thumb" />
              </a> </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="siteurl">文章作者</label>
            </div>
            <div class="field">
              <input type="text" class="input" id="author" name="author" size="50" placeholder="请填写文章作者" data-validate="required:请填写文章作者" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['author'];?>
" />
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="sitename">所属类别</label>
            </div>
            <div class="field">
              <select name="cate_id" class="select">
              <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cateInfo']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value) {
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['cate_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['row']->value['cate_id']==$_smarty_tpl->tpl_vars['art']->value['cate_id']) {?>selected='selected'<?php }?>><?php echo preg_replace('!^!m',str_repeat('-',($_smarty_tpl->tpl_vars['row']->value['level']*5)),$_smarty_tpl->tpl_vars['row']->value['cate_name']);?>
</option>
              <?php } ?>
              </select>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="readme">文章描述</label>
            </div>
            <div class="field">
              <textarea name="art_desc" class="input" rows="2" cols="50" placeholder="请填写文章描述" data-validate="required:请填写文章描述" ><?php echo $_smarty_tpl->tpl_vars['art']->value['art_desc'];?>
</textarea>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="readme">文章内容</label>
            </div>
            <div class="field">
              <textarea name="content" id="content" class="input" rows="8" cols="50" placeholder="请填写文章内容" data-validate="required:请填写文章内容" ><?php echo $_smarty_tpl->tpl_vars['art']->value['content'];?>
</textarea>
            </div>
          </div>
          <div class="form-button">
            <input type="hidden" name="thumb" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['thumb'];?>
">
             <input type="hidden" name="art_id" value="<?php echo $_smarty_tpl->tpl_vars['art']->value['art_id'];?>
">
            <button name="submit" class="button bg-main" type="submit">提交</button>
          </div>
        </form>
      </div>
    </div>
  </div>
  <div style='height:40px; border-bottom:1px #DDD solid'></div>
  <p class="text-right text-gray" style="float:right">基于<a class="text-gray" target="_blank" href="#">MVC框架</a>构建</p>
</div>
</body>
</html><?php }} ?>
